package cn.jiyun.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class HelloController {

    @Value("${user.username}")
    private String username;

    @Value("${user.password}")
    private String password;

    @Value("${user.age}")
    private String age;




    @GetMapping("getData")
public Map<String,Object>getData(){
        Map<String,Object> map=new HashMap<>();
        map.put("username",username);
        map.put("password",password);
        map.put("age",age);
        return map;
    }

}
